<template>
  <div style="height: calc(100vh - 84px); overflow: hidden">
    <Vditor :articleId="articleId"></Vditor>
  </div>
</template>

<script setup>
//@input方法需要自己定义，不然父组件可能获取不到editor的值
import Vditor from "./components/Vditor.vue";

const route = useRoute();
const articleId = ref(0);
if (route.query && route.query.articleId) {
  articleId.value = route.query.articleId;
}

onMounted(() => {});
</script>
